{extend name="common/main"}

{block name="css"}
<!-- 本页面需要额外添加的css请在此处添加 -->
<link rel="stylesheet" href="/mobiled/css/user.css">
<script type="text/javascript" src="/mobiled/js/mobile.js" ></script>

<script type="text/javascript" src="/mobiled/js/modernizr.js"></script>


{/block}

{block name="body"}
<body>
<header>
	<div class="tab_nav">
		<div class="header" style="background: #F6F6F6;">
			<div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
			<div class="h-mid">退换货</div>
			<div class="h-right">
				<aside class="top_bar">
					<div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
				</aside>
			</div>
		</div>
	</div>
</header>
{include file="common/goods_nav"/}
<div class="main_thh" id="mian_thh">
	{volist name='list' id='vo'}
		<table width="95%" border="1" cellspacing="0" cellpadding="0">
			<tr>
				<td>返修/退换货编号</td>
				<td>{$vo.id}</td>
			</tr>
			<tr>
				<td>订单编号</td>
				<td><a target="_blank" href="{:Url('User/order_detail')}?id={$vo.order_id}">{$vo.order_sn}</a></td>
			</tr>
			<tr>
				<td>商品名称</td>
				<td><a href="{:Url('classify/goodsinfo')}?id={$vo.goods_id}" target="_blank">{$good[$vo.goods_id]['goods_name']}</a></td>
			</tr>
			<tr>
				<td>申请时间</td>
				<td>{$vo.addtime|date="Y-m-d",###}</td>
			</tr>
			<tr>
				<td>状态</td>
				<td>
					{if condition="$vo['status'] eq 0"}待客服处理{/if}
					{if condition="$vo['status'] eq 1"}客服处理中{/if}
					{if condition="$vo['status'] eq 2"}已完成{/if}
				</td>
			</tr>
			<tr>
				<td class="check_but_thh" colspan="2">
					<div>
						<a href="{:Url('return_goods_info')}?id={$vo.id}">查看</a>
					</div>
				</td>
			</tr>
		</table>
	{/volist}
	{empty name="list"}
		<div id="list_0_0" class="font12">您没有任何售后数据哦！</div>
	{/empty}
</div>
<notempty name="list">
	<div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
		<a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a>
	</div>
</notempty>
<script>
    var  page = 1;
    /*** ajax 提交表单 查询订单列表结果*/
    function ajax_sourch_submit()
    {
        page += 1;
        $.ajax({
            type : "post",
            url:"{:Url('ajaxGetMore')}",
			data:{
                'p':page,
				'user_id':1
			},
			dataType:"json",
            success: function(data)
            {
                if (data.length == 0){
    				$('#getmore').remove();
                }else{
                    $.each(data,function (k,v) {
                        $('#mian_thh').append(v);
                    })
                }
            }
        });
    }

    function number(a) {
        // location.href="
		// alert($v['order_id']);
		window.open("{:Url('User/order_detail')}?id="+a+"");
    }
    function goods(a) {
        window.open("{:Url('classify/goodsinfo')}?id="+a+"");
    }

</script>

</body>
{/block}

{block name="js"}
<!-- 本页面需要额外添加的js请在此处添加 -->
<!--<script src="https://g.alicdn.com/aliww/ww/json/json.js" charset="utf-8"></script>-->

{/block}

